type From = 'btn' | 'voice';
export interface WFButton {
  id: string;
  value: string;
  sort: number;
  /**@description 按钮是否被分配*/
  allot: boolean;
  from: From;
}
export interface WFVoice {
  id: string;
  value: string;
  from: From;
}

export interface CellData {
  btnList: WFButton[],
}
export interface NodeData extends CellData {
  btnTrigger: WFButton[],
}

export interface EdgeData extends CellData {
  btnTrigger: WFButton[],
  voiceTrigger: WFVoice[],
}
